﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEditor;

[CustomEditor(typeof(ObjectBuilder))]
public class ObjectBuilderEditor : Editor {

    public override void OnInspectorGUI()
    {
        base.OnInspectorGUI();
        ObjectBuilder myScript = target as ObjectBuilder;
        if(GUILayout.Button("Create an Object"))
        {
            myScript.CreateObject();
        }
    }
}
